package com.example.flight_ticket_app.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

@Data
public class Belong implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String flightId;

    private Integer ticketId;

    private Integer economyClass;

    private Integer businessClass;

    public Belong(){}

    public Belong(String flightId, Integer ticketId, Integer economyClass, Integer businessClass){
        this.flightId = flightId;
        this.ticketId = ticketId;
        this.economyClass = economyClass;
        this.businessClass = businessClass;
    }

}
